From 9dcd57c662bab72da513845b119686f0b6cf8212 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sun, 3 Sep 2006 18:41:19 +0000 Subject: [PATCH] Fix cetus time conversion. Use mkgmtime() instead of mktime(). --- cetus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cetus.c b/cetus.c index 28042607c..406824e02 100644 --- a/cetus.c +++ b/cetus.c @@ -249,7 +249,7 @@ read_tracks(const struct pdb *pdb) tm.tm_mday = head->day; tm.tm_mon = head->month - 1; tm.tm_year = head->year + 100; - basetime = mktime(&tm); + basetime = mkgmtime(&tm); break; case 1: /* first part of description */ @@ -345,7 +345,7 @@ read_waypts(const struct pdb *pdb) tm.tm_mon = rec->mon - 1; tm.tm_year = be_read16(&rec->year) - 1900; - wpt_tmp->creation_time = mktime(&tm); + wpt_tmp->creation_time = mkgmtime(&tm); } -- 2.30.2